package session08.homework;

import javax.swing.*;
import java.awt.*;

public class MidPanel extends JPanel {

    private JLabel txtLab;//文字标签

    public JLabel getTxtLab() {
        return txtLab;
    }

    public void setTxtLab(JLabel txtLab) {
        this.txtLab = txtLab;
    }

    public MidPanel() {
        this.txtLab = new JLabel("欢迎来到猜数字游戏！");
        this.setBorder(BorderFactory.createLineBorder(Color.BLACK));
        this.add(this.txtLab);
    }
}
